Skip to content

Drag & Drop PDFs, MP4s, and COPY PASTE image files#137

Open
Alani25 wants to merge 5 commits into
developmentfrom
hamzah-dragdropimport
Open

Drag & Drop PDFs, MP4s, and COPY PASTE image files#137
Alani25 wants to merge 5 commits into
developmentfrom
hamzah-dragdropimport

Conversation

@Alani25

@Alani25 Alani25 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

You can drag and drop PDFs & MP4s to open them the same way you can open a wick file by dragging it into the editor, which is sometimes far faster than needing to manually click the "open" button then searching for the file to open.

Also, you can now copy-paste images directly from your clipboard to the editor.
Pasted images will automatically be added to the asset library and placed where the cursor is located. The added image asset is then automatically "copied" so that the next time the user pastes, it pastes the same image from the asset library rather than re-importing it.
When the user copies an object inside of the project, that object is then pasted rather than the image. If the user then copies an image, that image is what's to be pasted until another image/ wick object is copied.

Whatever was copied last is what gets pasted.
How can the editor tell what was copied last?

Whenever the user uses the paste or copy feature in candlestick, the current clipboard is saved within the window's local storage as a stamp "finger print." If the current clipboard has an image in it, but that image doesn't match the saved fingerprint, then we upload the image into the asset library then copy the image wick object that is added to the project from that copy-paste. That way, the next time the user pastes, it'd paste the uploaded image rather than upload a new image. When the copy feature is used to copy wick elements, we fingerprint the current clipboard to make sure it's ignored. If the clipboard changes than what was stamped, then we know that the user copied an image after the copied wick object. The reason i save the fingerprint on the window's local storage is to make sure that users are still able to use copy/ paste features between multiple projects in multiple windows without issue.

It may be a bit confusing to explain it, but to put it simply this feature should work as "expected."
Testing would be appreciated.

@Alani25 Alani25 requested a review from BaronAWC June 16, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant